package smlab.view.ui.list
{

	/**
	 *
	 * @author simon
	 * date:2010.2.11
	 * update:2010.2.11
	 * 所有索引从0开始计算
	 */
	public interface IList_SM
	{
		function set allowMultiSelect(value:Boolean):void;
		function get allowMultiSelect():Boolean;
		function set dataProvider(value:Array):void;
		function get dataProvider():Array;
		function get selectedItem():IListItem_SM;
		function get selectedData():Object;
		function set selectable(value:Boolean):void;
		function get selectable():Boolean;
		function get selectedIndex():int;
		function get selectedItems():Array;//获取多选的项
		function get selectedDatas():Array;//获取多选的项的数据
		function addItem(item:IListItem_SM):void;
		function addItemAt(item:IListItem_SM, index:uint):void;
		function getItemAt(index:uint):IListItem_SM
		function replaceItemAt(item:IListItem_SM, index:uint):IListItem_SM//返回 Object — 被替换的项目。  
		function move(index:int):void;//移动到（选中）某项，负值代表不选择任何项
		function removeAll():void
		function removeItem(item:IListItem_SM):IListItem_SM
		function removeItemAt(index:int):void
	}
}